Hacking with Spring Boot 2.4: Classic Edition by Greg L. Turnquist
Author:Greg L. Turnquist
Language: eng
Format: epub, pdf
Tags: spring boot, spring boot 2, spring boot 2.4, spring, spring framework
Published: 2021-03-03T20:13:06+00:00
Managing your application in production
You finished Day 1 by deploying your application to production. Now itâs time for Day 2, managing your application.
The rest of this chapter will show the various tools provided by Spring Bootâs Actuator module to help monitor your application.
Pinging your app with Spring Boot Actuator and /actuator/health
So youâve built a Spring Boot application. You crafted some web pages and render them using WebFlux. You stirred in a little Spring Data. Spring Bootâs developer tools sure did speed up the cycles to get that hammered out.
And five minutes agoâ¦âyou pushed that runnable JAR file to the server (or perhaps installed from a thumb drive in your air-gapped server room).
So now what?
The first question from the Ops team now managing your app will probably be, "can we ping it?" And theyâre just getting warmed up. What about metrics? Stats? Detailed health checks? Does it plays nicely with the database they also have to manage?
You could start to craft some extra controllers to meet these requests.
Orâ¦âyou could add Spring Boot Actuator and call it a day.
To add operational support to your Spring Boot app, add this to your build file.
Adding Spring Boot Actuator to the build
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency>
Download
Hacking with Spring Boot 2.4: Classic Edition by Greg L. Turnquist.pdf
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
The Mikado Method by Ola Ellnestam Daniel Brolund(25280)
Hello! Python by Anthony Briggs(24330)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(23419)
Kotlin in Action by Dmitry Jemerov(22500)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(21953)
Dependency Injection in .NET by Mark Seemann(21835)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(20697)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(19514)
Grails in Action by Glen Smith Peter Ledbrook(18592)
Adobe Camera Raw For Digital Photographers Only by Rob Sheppard(17028)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(15836)
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(13683)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(11846)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(11149)
A Developer's Guide to Building Resilient Cloud Applications with Azure by Hamida Rebai Trabelsi(10619)
Hit Refresh by Satya Nadella(9185)
The Kubernetes Operator Framework Book by Michael Dame(8560)
Exploring Deepfakes by Bryan Lyon and Matt Tora(8398)
Robo-Advisor with Python by Aki Ranin(8345)